package com.wy.android.mp.infoquery;

import com.wy.android.mp.MainActivity;
import com.wy.android.mp.R;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;


/**
 * 信息查询界面
 * */

public class InfoQueryActivity extends ListActivity {
	
	private Button returnButton;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.infoquery);
		
String[] menus={"在逃人员查询","被盗车辆查询","人口信息查询","社区信息查询","出入境资料查询","案件查询","公文查询"};
		
		setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,menus));
		getListView().setTextFilterEnabled(true);
		
		returnButton=(Button) findViewById(R.id.returnButton);
		returnButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});

	}
	
	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		Intent intent=null;
		
		switch(position){
		
		case 0:
			intent=new Intent(InfoQueryActivity.this,EscapedQueryActivity.class);
			startActivity(intent);
			break;
		case 1:
		
			break;
		case 2:
			
			break;
		case 3:
		
			break;
		}
		
	}
	

}
